#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int my_strlen(char str[]) {
	int count = 0;
	for (; *str != '0';str++)
		count=count+1;
	return count;
}
int main() {
	char str[50] ;
	gets("%s", str);
	int sz = my_strlen(str);
	printf("%d", sz);
	return 0;
}